package com.runningrookie.mapper;

import com.runningrookie.domain.ConcurrencyLockBean;
import org.apache.ibatis.annotations.Param;

public interface ConcurrencyLockMapper {
    /**
     * 根据业务节点和唯一业务号查询锁
     */
    ConcurrencyLockBean selectConcurrencyLock(@Param("businessNode") String businessNode, @Param("businessUniqueNo") String businessUniqueNo);

    /**
     * 插入锁
     */
    int insertConcurrencyLock(ConcurrencyLockBean lock);

    /**
     * 删除锁
     */
    int deleteConcurrencyLock(ConcurrencyLockBean lock);
}
